Link previews turn a pasted URL into a rich, metadata-aware widget that can be displayed in three visual modes:

Display modes

A link preview can be displayed in one of three modes:

Inline link preview
Card link preview
Embed link preview

Inserting a link preview

There are two ways to create one:

1. By pasting a URL

A link preview is automatically created:

To undo an automatic link preview, press Ctrl+Z immediately afterwards which keeps it as a plain link instead. Alternatively, once a link preview was created, click on the link and select Plain link from the link preview toolbar.

This automatic conversion can be disabled by going to Options → Text Notes and unchecking Autogenerate link previews from the Features section.

If the link is not accessible to the Trilium server (or the network request fails for any other reason), it will not be converted to a link preview.

2. By using the "Link preview" toolbar button

Click Link preview in the formatting toolbar to open the Link preview popup. Paste the URL and choose the type of preview.

Altering an existing link preview

Click on an inserted link preview to select it, and a small toolbar will appear with the following options:

Where the preview data comes from

When you insert a link preview, Trilium fetches metadata once and stores it inside the note's HTML:

Because the data is stored in the note itself, link previews continue to render correctly when you reopen the note, share/publish it, or export to HTML — without any further network requests.

The metadata is captured at insertion time and is not automatically refreshed. If the linked page later changes its title or thumbnail, you'll need to re-insert the link to pick up the new values. To refresh a link, simply create it again.

When accessing a Server Installation, the data is fetched from the remote URL by the server and not the client.

Known limitations